package com.qxbb.report.Enum;

public enum DescribeType {

    TYPE_HS("HS","总部采购"),

    TYPE_HR("HR","总部退货"),

    TYPE_CS("CS","零售销售-/退货+"),

    TYPE_CT("CT","调货"),

    TYPE_CO("CO","盘点报溢"),

    TYPE_CL("CL","盘点报损"),

    TYPE_HSC("HSC","总部采购红冲"),

    TYPE_HRC("HRC","总部退货红冲"),

    TYPE_CSP("CSP","采购红冲"),

    TYPE_CSR("CSR","采购退货红冲"),

    TYPE_CRS("CRS","批发销售红冲"),

    TYPE_CRR("CRR","批发退货红冲"),

    TYPE_CSC("CSC","零售红冲销售+/退货-"),

    TYPE_CTC("CTC","调货红冲"),

    TYPE_COC("COC","盘点报溢红冲"),

    TYPE_CCL("CCL","盘点报损红冲"),

    TYPE_CLC("CLC","盘点报损红冲"),

    TYPE_ABA("ABA","老款自动扎帐");


    private final String type;

    private final String msg;

    DescribeType(String type,String msg){
        this.type = type;
        this.msg = msg;
    }

    public  static String DescribeType(String type){
        for (DescribeType value : DescribeType.values()) {
            if (type.equals(value.type)){
                return value.msg;
            }
        }
        throw new RuntimeException("未知类型！");
    }

    public String getType() {
        return type;
    }

    public String getMsg() {
        return msg;
    }
}
